package com.tbit.main.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author LMY
 * @create 2022-09-16 14:22
 */
@Configuration
@Data
@ConfigurationProperties(prefix = "brand")
public class HostList {
    private List<Host> hostList;

    /**
     * 用于监听到RefreshEvent事件后操作触发创建新实例对象
     */
    public void refresh() {
        System.out.println("刷新配置，触发创建新实例对象");
    }
}
